package examples

import (
	"context"

	"gitee.com/djaf/my-certs/app/data/dxo"
	"gitee.com/djaf/my-certs/app/web/dto"
)

// Service : Service for Examples
type Service interface {
	Insert(ctx context.Context, item *dto.Example) (*dto.Example, error)

	Update(ctx context.Context, id dxo.ExampleID, item *dto.Example) (*dto.Example, error)

	Remove(ctx context.Context, id dxo.ExampleID) error

	Find(ctx context.Context, id dxo.ExampleID) (*dto.Example, error)

	List(ctx context.Context) ([]*dto.Example, error)
}
